
function getToday(i)
{
  	var d = new Date();
  	var year=d.getFullYear();
  	var month=d.getMonth()+1;
  	var date=d.getDate();
  	if (month < 10) month = '0' + month;
    if (date < 10) date = '0' + date;
    return (year +'' + month + '' + date+''+'0930')*1;
}
  	    
function getKLData(scalerCount) {

    var result = {};
    var ks = [];
    
    result.low=0;
    result.high=0;
    result.isinit=true;
    //初始化  9为X轴  xAxis.scalerCount设置的数量
    for(var i=0;i<scalerCount;i++)
    {
	    var item = {
	            quoteTime: getToday(i),
	            preClose: 0,
	            open: 0,
	            high: 0,
	            low: 0,
	            close: 0,
	            volume: 0,
	            amount: 0
	    };
	    ks.push(item);
	}
    
    result.ks = ks;
    return result;
}